#ifndef _DIRTYRECT_H_
#define _DIRTYRECT_H_

#include <SDL/SDL.h>
#include "misc.h"

namespace animationagent {


class DirtyRect
{
private:
    static const Uint16 DIRTYRECT_MAX_NUMBER = 20;
    static SDL_Rect dirty_rects[DIRTYRECT_MAX_NUMBER];
    static Uint16 num;
public:
    static void register_to(SDL_Rect *rect);
    static void clear();
    static Uint16 get_number();
    static bool is_all_dirty();
    static SDL_Rect *get_rect(int index);
};

}

#endif //_DIRTYRECT_H_
